home *** CD-ROM | disk | FTP | other *** search
/ Team Palmtops 7 / Palmtops_numero07.iso / WinCE / SDKWindowsCE / HandHeldPCPro30 / sdk.exe / Jupiter SDK / data1.cab / MFC / src / oleexp.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1999-02-19  |  1.2 KB  |  47 lines

  1. // This is a part of the Microsoft Foundation Classes C++ library.
  2. // Copyright (C) 1992-1998 Microsoft Corporation
  3. // All rights reserved.
  4. //
  5. // This source code is only intended as a supplement to the
  6. // Microsoft Foundation Classes Reference and related
  7. // electronic documentation provided with the library.
  8. // See these sources for detailed information regarding the
  9. // Microsoft Foundation Classes product.
  10.  
  11. #include "stdafx.h"
  12.  
  13. #ifdef _DEBUG
  14. #undef THIS_FILE
  15. static char THIS_FILE[] = __FILE__;
  16. #endif
  17.  
  18. #define new DEBUG_NEW
  19.  
  20. #ifdef AFX_CORE1_SEG
  21. #pragma code_seg(AFX_CORE1_SEG)
  22. #endif
  23.  
  24. #if !defined(_WIN32_WCE_NO_OLE)
  25. /////////////////////////////////////////////////////////////////////////////
  26. // DllGetClassObject
  27.  
  28. extern "C"
  29. STDAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv)
  30. {
  31.     AFX_MANAGE_STATE(AfxGetStaticModuleState());
  32.     return AfxDllGetClassObject(rclsid, riid, ppv);
  33. }
  34.  
  35. /////////////////////////////////////////////////////////////////////////////
  36. // DllCanUnloadNow
  37.  
  38. extern "C"
  39. STDAPI DllCanUnloadNow(void)
  40. {
  41.     AFX_MANAGE_STATE(AfxGetStaticModuleState());
  42.     return AfxDllCanUnloadNow();
  43. }
  44.  
  45. /////////////////////////////////////////////////////////////////////////////
  46. #endif // _WIN32_WCE_NO_OLE
  47.